package com.websocket.util;

import android.util.Log;

public class LogWSUtils {

    public static void log(Object log){
        Log.e("-------", "-----------=" + log);
    }

    public static void log(String msg, Object log){
        Log.e("-------" + msg, "-----------=" + log);
    }


    private static StringBuilder sb;
    /*** * 打印数据**/
    public static void logData(byte[] by, int len, String str) {
        sb = new StringBuilder();
        for (int i = 0; i < len; i++) {
            sb.append(Integer.toHexString(by[i] & 0xff) + " ");
        }
        LogWSUtils.log(str, sb.toString());
    }
}
